<template></template>

<script>
import { defineComponent, nextTick, onMounted } from "@vue/runtime-core";
import { useRoute, useRouter } from "vue-router";
// import { loadQKApp } from "../../micro_apps/index";

export default defineComponent({
  name: "refresh",
  setup() {
    const router = useRouter();
    const route = useRoute();
    const init = () => {
      const url = decodeURIComponent(route.query.url);
      const appName = url.split("/")[2];
      router.replace(url);
      // loadQKApp({
      //   appName,
      // }).then(() => {
      //   router.replace(url);
      // });
    };

    onMounted(() => {
      nextTick(() => {
        init();
      });
    });
  },
});
</script>
